/** 
 * MulExpression.java
 * @author Lex
 * 2007-8-20 ����02:44:24
 */
package fun.parser.ast.node;

import fun.parser.EvaluationException;
import fun.parser.ast.node.base.BinaryExpression;
import fun.parser.ast.node.base.Expression;
import fun.parser.lexer.Token;
import fun.symtable.SymbolTable;

/**
 * 
 */
public class MultiplyExpression extends BinaryExpression {
    public MultiplyExpression(Token token, Expression first, Expression second) {
	super(token, first, second);
    }

    @Override
    public double getValue(SymbolTable symtable) throws EvaluationException {
	return first.getValue(symtable) * second.getValue(symtable);
    }
}
